package com.keepmoving.dao;

import com.keepmoving.po.Coach;

import java.util.List;

/**
 * @author xf
 * 教练数据访问层
 */
public interface CoachDao {

    /**
     * 展示所有教练
     */
    public List<Coach> showAll();


    /**
     * 通过教练coid展示教练
     *
     * @param coId
     * @return
     */
    public Coach showByCoId(int coId);

    /**
     * 添加教练
     *
     * @param coach
     * @return
     */
    public int  addCoach(Coach coach);

    /**
     * 根据coId删除教练
     *
     * @param coId
     * @return
     */
    public int deleteCoach(int coId);

    /**
     * 更新教练信息
     *
     * @param coach
     * @return
     */
    public int update(Coach coach);

//    public Coach find

}
